import dict from '@/utils/dict-util'
 
const dictChange = function (data, element, dictName) {
  const col = element.property
  const dictArr = dict[dictName]
  if (!dictArr) return
  for (let item of dictArr) {
    if (item.code === data[col]) {
      return item.name
    }
  }
}
export default dictChange